home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Includes / USubstitution.h < prev    next >
Encoding:
Text File  |  1996-04-03  |  1.1 KB  |  31 lines  |  [TEXT/MPS ]

  1. // USubstitution.h
  2. // Copyright © 1988-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. #ifndef __USUBSTITUTION__
  5. #define __USUBSTITUTION__
  6.  
  7. // MacApp
  8.  
  9. #ifndef __PASCALSTRING__
  10. #include "PascalString.h"
  11. #endif
  12.  
  13. //----------------------------------------------------------------------------------------
  14. // Externally available function declaration.
  15. //----------------------------------------------------------------------------------------
  16.  
  17. extern void InitUSubstitution();
  18.     // This routine must be called if USubstitution is used so that all the necessary
  19.     // initialization can be performed. 
  20.  
  21. extern void MAParamText(const CStr255& keyStr, const CStr255& valueStr);
  22.     // Used to create paramTxt items for a dialog. Builds an association with keyStr and
  23.     // valueStr. All instances of keyStr in the dialog will be replaced with valueStr when
  24.     // the dialog is displayed.
  25.  
  26. extern void MAReplaceText(CStr255& theText);
  27.     // If there are any param text items in the theText passed to this method then they
  28.     // are replaced with the appropriate values.
  29.  
  30. #endif // __USUBSTITUTION__
  31.